function AG(url, params, auth) {
  if (auth) {
    axios.defaults.headers.common["Authorization"] =
      localStorage.getItem("token");
  }
  return axios({
    baseURL: "http://localhost:8888",
    url,
    params,
  });
}
function AP(url, data, auth) {
  if (auth) {
    axios.defaults.headers.common["Authorization"] =
      localStorage.getItem("token");
  }
  return axios({
    baseURL: "http://localhost:8888",
    method: "post",
    url,
    data,
    headers: { "content-type": "application/x-www-form-urlencoded" },
  });
}
